{include file="header.html"}
<body class="gr">

<div class="navBar">
	<a class="left" href="javascript:history.go(-1)"><i class="return"></i></a>
	<div class="titleView">物流情况</div>
</div>

<div class="member-order-express main-top">
	<div class="info ge-bottom">
		<div class="view">
			<div {if is_array($data->goods)}style="background-image:url({$data->goods[0]->goods_pic});"{/if}></div>
			<span>物流公司：{$data->shipping_company}</span>
			<span>快递单号：{$data->shipping_number}</span>
			<span>官方电话：<font>{if isset($data->shipping_tel)}{$data->shipping_tel}{else}-{/if}</font></span>
		</div>
	</div>
	
	<div class="express ge-top">
		{if is_array($data->express["data"])}
		<div class="title ge-bottom ge-light">物流跟踪</div>
		<ul>
			{foreach from=$data->express["data"] name=foo item=e}
			<li>
				<div class="view ge-bottom ge-light{if $smarty.foreach.foo.first} first{/if}{if $smarty.foreach.foo.last} last{/if}">
					<div class="nav"><span class="ge-right"></span><div></div></div>
					<div class="content">{$e['context']}</div>
					<div class="time">{$e['time']}</div>
				</div>
			</li>
			{/foreach}
			<div class="clear"></div>
		</ul>
		{else}
		<div class="no-record" style="text-align: center;">暂时没有物流信息{$data->express['Reason']}</div>
		{/if}
	</div>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('.express .view').each(function(){
		var view = $(this), height = view.outerHeight(false), span = view.find('.nav span');
		view.height(height);
		if(view.hasClass('first')){
			span.css({ top:18, height:height-18 });
		}else if(view.hasClass('last')){
			span.css({ height:18 });
		}else{
			span.height(height);
		}
	});
});
</script>